package com.atguigu.gulimall.order.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.order.feign.fallback.MemberFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description
 * @Author lhj
 * @Date 2024/5/1 21:57
 */
@FeignClient(name = "gulimall-member", contextId = "MemberFeignService", fallback = MemberFeignServiceFallback.class)
public interface MemberFeignService {

    /**
     * 获取收获地址
     * @param memberId
     * @return
     */
    @GetMapping("/member/memberreceiveaddress/{memberId}/getAddresses")
    R getAddressByMemberId(@PathVariable Long memberId);
    
}
